<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:include value="pageTop.jsp" />

<div id="page">
	<div id="content">
		<div class="post">
			<h2 class="title">
			<s:if test="taxista==null || taxista.idTaxista == null">
			<s:text name="title.newTaxista" />
			</s:if>
			<s:else>
				<s:text name="title.editarTaxista" />
			</s:else></h2>
			<div class="entry" align="center">
			<fieldset>
<s:form action="saveTaxista" method="post">
	<s:textfield name="taxista.nombre" value="%{taxista.nombre}" label="%{getText('label.nombre')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.apellidoP" value="%{taxista.apellidoP}" label="%{getText('label.apellidoP')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.apellidoM" value="%{taxista.apellidoM}" label="%{getText('label.apellidoM')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.licencia" value="%{taxista.licencia}" label="%{getText('label.licencia')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.edad" value="%{taxista.edad}" label="%{getText('label.edad')}" size="25" required="true" maxlength="2" />
	<s:textfield name="taxista.estado" value="%{taxista.estado}" label="%{getText('label.estado')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.ganancia" value="%{taxista.ganancia}" label="%{getText('label.ganancia')}" size="25" required="true" maxlength="8" />
	<s:textfield name="taxista.tel" value="%{taxista.tel}" label="%{getText('label.tel')}" size="25" required="true" maxlength="50" />
	<s:textfield name="taxista.idTel" value="%{taxista.idTel}" label="%{getText('label.idTel')}" size="25" required="true" maxlength="5" />
	<s:password name="taxista.password" value="%{taxista.password}" label="%{getText('label.password')}" size="25" required="true" maxlength="25" />
	<s:hidden name="taxista.latitud" value="%{19.3545}"/>
	<s:hidden name="taxista.longitud" value="%{-99.272272}"/>
	<s:hidden name="taxista.idTaxista" value="%{taxista.idTaxista}" />
	<s:submit value="%{getText('button.label.submit')}" />
</s:form></fieldset>
			</div>
		</div>
	</div>
	<!-- end #content -->
<s:include value="pageBottom.jsp" />